HandshakeResource.fromJson constructor

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

Implementation

factory HandshakeResource.fromJson(Map<String, dynamic> json) {
  return HandshakeResource(
    resources: (json['Resources'] as List?)
        ?.whereNotNull()
        .map((e) => HandshakeResource.fromJson(e as Map<String, dynamic>))
        .toList(),
    type: (json['Type'] as String?)?.toHandshakeResourceType(),
    value: json['Value'] as String?,
  );
}