AttributePayload.fromJson constructor

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

Implementation

factory AttributePayload.fromJson(Map<String, dynamic> json) {
  return AttributePayload(
    attributes: (json['attributes'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
    merge: json['merge'] as bool?,
  );
}