Debugger/src/StatusMessage.php
public static function fromJson(array $data)
    {
        if (!$data) {
            return null;
        }

        $data += [
            'isError' => false,
            'refersTo' => null,
            'description' => null
        ];
        return new static($data['isError'], $data['refersTo'], FormatMessage::fromJson($data['description']));
    }
public static function fromJson(array $data)
    {
        if (!$data) {
            return null;
        }

        $data += [
            'isError' => false,
            'refersTo' => null,
            'description' => null
        ];
        return new static($data['isError'], $data['refersTo'], FormatMessage::fromJson($data['description']));
    }
public static function fromJson ( array $ data ) { if ( ! $ data ) { return null ; } $ data += [ 'isError' => false , 'refersTo' => null , 'description' => null ] ; return new static ( $ data [ 'isError' ] , $ data [ 'refersTo' ] , FormatMessage :: fromJson ( $ data [ 'description' ] ) ) ; }
Load a StatusMessage from JSON form

Example:
```
$message = StatusMessage::fromJson([
'isError' => true,
'refersTo' => StatusMessage::REFERENCE_UNSPECIFIED,
'description' => [
'format' => 'message with placeholders',
'parameters' => []
]
]);
```

@access private
@param array $data {
StatusMessage data

@type bool $isError Distinguishes errors from informational messages.
@type Reference $refersTo Reference to which the message applies.
@type FormatMessage $description Status message text.
}
@return StatusMessage|null
Load a StatusMessage from JSON form