DescribeComponentResponse.fromJson constructor

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

Implementation

factory DescribeComponentResponse.fromJson(Map<String, dynamic> json) {
  return DescribeComponentResponse(
    applicationComponent: json['ApplicationComponent'] != null
        ? ApplicationComponent.fromJson(
            json['ApplicationComponent'] as Map<String, dynamic>)
        : null,
    resourceList: (json['ResourceList'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}