BaseFields.fromJson constructor

BaseFields.fromJson(
  1. Map<String, dynamic> json
)

Map the properties from a json map.

Implementation

BaseFields.fromJson(Map<String, dynamic> json)
    : this.object = stringToObjectType(json['object']),
      this.id = json['id'] ?? '',
      this.createdTime = json['created_time'] ?? '',
      this.lastEditedTime = json['last_edited_time'] ?? '';