toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
  'name': name,
  'key': key,
  'type': type,
  if (defaultValue != null) 'defaultValue': defaultValue,
  if (description != null) 'description': description,
  if (persisted) 'persisted': true,
};