toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'id': id,
    'did': did,
    'type': type,
    'idl': idl,
    'nullable': nullable,
    if (ser != null) 'ser': ser,
    if (deser != null) 'deser': deser,
  };
}