toJson method

  1. @override
Map<String, dynamic> toJson()
override

Object to Map serializer

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    '@type': 'setName',
    if (extra != null) '@extra': extra,
    'first_name': first_name,
    'last_name': last_name
  };
}