toJson method

Map<String, String?> toJson()

Maps the CreatedBy to a format the server can understand

Implementation

Map<String, String?> toJson() => {
      'displayValue': displayValue ?? '',
      'id': id,
      'name': name,
      'type': type.backendType,
    };