FunctionMock.fromJson constructor

FunctionMock.fromJson(
  1. Map _json
)

Implementation

FunctionMock.fromJson(core.Map _json)
    : this(
        args: _json.containsKey('args')
            ? (_json['args'] as core.List)
                .map((value) => Arg.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        function: _json.containsKey('function')
            ? _json['function'] as core.String
            : null,
        result: _json.containsKey('result')
            ? Result.fromJson(
                _json['result'] as core.Map<core.String, core.dynamic>)
            : null,
      );