AttributesResource.fromJson constructor

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

Implementation

factory AttributesResource.fromJson(Map<String, dynamic> json) {
  return AttributesResource(
    applicationId: json['ApplicationId'] as String,
    attributeType: json['AttributeType'] as String,
    attributes: (json['Attributes'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}