PrivatePropertyDescriptor.fromJson constructor

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

Implementation

factory PrivatePropertyDescriptor.fromJson(Map<String, dynamic> json) {
  return PrivatePropertyDescriptor(
    name: json['name'] as String,
    value: json.containsKey('value')
        ? RemoteObject.fromJson(json['value'] as Map<String, dynamic>)
        : null,
    get: json.containsKey('get')
        ? RemoteObject.fromJson(json['get'] as Map<String, dynamic>)
        : null,
    set: json.containsKey('set')
        ? RemoteObject.fromJson(json['set'] as Map<String, dynamic>)
        : null,
  );
}