SourceResult.fromMap constructor

SourceResult.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory SourceResult.fromMap(Map<String, dynamic> map) {
  return SourceResult(
    id: map['id'] ?? '',
    type: map['type'] ?? '',
    attributes: map['attributes'] != null
        ? SourceAttributes.fromMap(map['attributes'])
        : null,
  );
}